<?php
/*
 *获取年级
 */
header("Content-type: text/html; charset=utf-8;"); 
require '../ppf/fun.php';
require '../ppf/pdo_mysql.php';

$pd=new pdo_mysql();
$list=$pd->query("select * from sys_grade where xtype='学科'")->fetchAll(PDO::FETCH_ASSOC);
if($list){
	$json_result=json_encode($list,JSON_UNESCAPED_UNICODE); 
    echo $json_result;
}else{
	echo "error";
}

?>